package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserLikeAndFavoriteReadState;
import com.ecoolex.ying.space.entity.UserLikeAndFavoriteReadStateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserLikeAndFavoriteReadStateMapper {
    long countByExample(UserLikeAndFavoriteReadStateExample example);

    int deleteByExample(UserLikeAndFavoriteReadStateExample example);

    int deleteByPrimaryKey(Integer readUserId);

    int insert(UserLikeAndFavoriteReadState record);

    int insertSelective(@Param("record") UserLikeAndFavoriteReadState record, @Param("selective") UserLikeAndFavoriteReadState.Column ... selective);

    UserLikeAndFavoriteReadState selectOneByExample(UserLikeAndFavoriteReadStateExample example);

    List<UserLikeAndFavoriteReadState> selectByExample(UserLikeAndFavoriteReadStateExample example);

    UserLikeAndFavoriteReadState selectByPrimaryKey(Integer readUserId);

    UserLikeAndFavoriteReadState selectByPrimaryKeyWithLogicalDelete(@Param("readUserId") Integer readUserId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserLikeAndFavoriteReadState record, @Param("example") UserLikeAndFavoriteReadStateExample example, @Param("selective") UserLikeAndFavoriteReadState.Column ... selective);

    int updateByExample(@Param("record") UserLikeAndFavoriteReadState record, @Param("example") UserLikeAndFavoriteReadStateExample example);

    int updateByPrimaryKeySelective(@Param("record") UserLikeAndFavoriteReadState record, @Param("selective") UserLikeAndFavoriteReadState.Column ... selective);

    int updateByPrimaryKey(UserLikeAndFavoriteReadState record);

    int batchInsert(@Param("list") List<UserLikeAndFavoriteReadState> list);

    int batchInsertSelective(@Param("list") List<UserLikeAndFavoriteReadState> list, @Param("selective") UserLikeAndFavoriteReadState.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserLikeAndFavoriteReadStateExample example);

    int logicalDeleteByPrimaryKey(Integer readUserId);
}